<cfparam name="f" default="docs">
<cfparam name="dir" default="/">
<cfparam name="foldername" default="notfound">
<cfif directoryexists('#request.basepath##f##dir##foldername#')>
	<cfdirectory action="delete" directory="#request.basepath##f##dir##foldername#" recurse="yes">
</cfif>
<cfinvoke component="cfcs.common.shared" method="redirect" url="index.cfm?c=pages&a=default&showfolders=1&f=#f#&dir=#dir#" msg="Folder deleted." />